#include<iostream>

using namespace std;

template<class E, class T>
class Person {
public:
	Person(E name, T age) : m_name(name), m_age(age) {}

	void showPerson() {
		cout << "name: " << m_name << ", age: " << m_age << endl;
	}
private:
	E m_name;
	T m_age;
};

int main(void)
{
	Person<string, int> p("Tom", 12);
	p.showPerson();
	return 0;
}